package com.zut.utils;


/**
 * @author: Mr.Liu
 * @create: 2021-11-04 13:58
 */
public class NumUtil {
    static String[] arr = {//36
      "0","1","2","3","4","5","6","7",
      "8","9","a","b","c","d","e","f",
      "g","h","i","g","k","l","m","n",
      "o","p","q","r","s","t","u","v",
      "w","x","y","z"
    };

    /**
     * 随机生成长度为5的一个ID信息
     * @return String
     */
    public static String Rom(){
        StringBuilder stringBuilder = new StringBuilder();
        for (int i = 0; i < 5; i++) {
            stringBuilder.append(arr[(int)(Math.random()*35)]);
        }
        return stringBuilder.toString();
    }
}
